package com.xcity.game.buff.impl;

import com.xcity.game.buff.Buff;
import com.xcity.game.buff.BuffTemplate;

public class BuffFinishBuild extends Buff {

	public BuffFinishBuild(int id, BuffTemplate template) {
		super(id, template);
	}

	public BuffFinishBuild(int id, long createTime, int usedTimes, int duration, BuffTemplate template) {
		super(id, createTime, usedTimes, duration, template);
	}

	@Override
	public boolean update() {
		int total = template.getParameter(0);
		return usedTimes >= total;
	}
	
}
